<template>
  <div>
    <a-radio-group
      v-if="productClassifyOptions.length > 0"
      :options="productClassifyOptions"
      v-model:value="modelValue"
      v-bind="$attrs"
    ></a-radio-group>
    <div v-else class="text-gray-400">没有数据</div>
  </div>
</template>

<script setup lang="ts">
import { productClassifyOptions, getProductClassifyOptions } from '@/api/modules/utils/data';

const modelValue = defineModel('modelValue');
onMounted(async () => {
  await getProductClassifyOptions();
});
</script>

<style lang="scss" scoped></style>
